package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.SchoolStatisticDO;
import com.eas.biz.dao.statistic.interfaces.SchoolStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("schoolStatisticDao")
public class SchoolStatisticDaoImpl extends GenericDaoImpl<SchoolStatisticDO> implements
        SchoolStatisticDao {

    public SchoolStatisticDO selectById(long id) {
        return selectById("SchoolStatistic.selectById", id);
    }

    public long insert(SchoolStatisticDO object) {
        return insert("SchoolStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("SchoolStatistic.deleteById", id);
    }

    public int update(SchoolStatisticDO object) {
        return update("SchoolStatistic.update", object);
    }

    public List<SchoolStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("SchoolStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("SchoolStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("SchoolStatistic.deleteByQuery", query);
    }

}
